<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	<link rel="stylesheet" href="S.css" />
</head>
<body>
<pre>
	asdfasdf
	as
	df
	
	
	asdf
	
	sad
	f
	sad
	f
	asdf
	asd
	f
	sad
	f
	asd
	f</pre>
	
	<div style="width:300px;height:300px;border:solid 1px #ccc;position:absolute;left:300px;top:100px;" id="x1"></div>
</body>
		<script type="text/javascript" src="../jquery.min.js"></script>
		<script type="text/javascript" src="S.js"></script>
		<script type="text/javascript">
		
		var context =  new S.ContextMenu({
			el:S.E('x1'),
			items:{
				'增加':function(){
					alert('add');
				},
				删除:function(){
					alert('remove');
				},
				销毁:function(){
					alert('destroy');
				},
				更多:{
					这:function(){},
					那:function(){},
					l:'|',
					对齐:function(){}
				},
				l:'|',
				'复制':function(){},
				粘贴:function(){
					new S.Info({text:'这就是生活',type:'info'}).show();
				},
				剪切:function(){},
				大小:{
					大:function(){},
					中:function(){},
					小:'|',
					正常:function(){}
				}
			}
		});
		
		context.disable(['复制','正常','对齐']);
		context.enable('正常');
		
		</script>
</html>